/*****************************************************************************
 * (C) Copyright 2013 Atech-Automotive
 * FILE NAME:    diag_fun.h
 * DESCRIPTION:  Header file for module diag_fun.c
 * DATE BEGUN:   Jan 2013
 * BY:           Allen Feng
 * PRODUCT NAME: B11 BCM
 * APPLICATION:  
 * TARGET H/W:   
 * DOC REF:
 *****************************************************************************
 */

#ifndef diag_fun_h
#define diag_fun_h


/* #include */
#include "system.h"
#include "diag.h"
/* #define */
#define DIAG_L_TH_VBAT	110
#define DIAG_H_TH_VBAT	220
#define CONFIRM_VBAT		20	//20 times confirm  = 50ms*20=1s
//#define VBAT_16_5V 
//#define VBAT_16V 
//#define VBAT_9V
//#define VBAT_8_5V

#define DIAG_TemperatureSensor_0_1V    (UINT8)0x05
#define DIAG_TemperatureSensor_4_9V    (UINT8)0xfa


/* Function prototypes */
extern VBATDiagInfo VBATDiag;
extern TemperDiagInfo   TemperatureSensorDiag;
//extern HSDDiagInfo HornHSDDiag;
//extern HSDDiagInfo LLockHSDDiag;
//extern HSDDiagInfo RLockHSDDiag;
//extern LSDDiagInfo RearDefr_LSDDiag;


void checkDiags(void);
void iniDiagStatus(void);
void configDiags(void);





#endif






